import request from '@/utils/request'

export function listcheckset(query) {
  return request({
    url: '/inspection/checkset/list',
    method: 'get',
    params: query
  })
}

export function createcheckset(data) {
  return request({
    url: '/inspection/checkset/create',
    method: 'post',
    data
  })
}

export function readcheckset(data) {
  return request({
    url: '/inspection/checkset/get/' + data.id,
    method: 'get'
  })
}

export function updatecheckset(data) {
  return request({
    url: '/inspection/checkset/update',
    method: 'post',
    data
  })
}

export function deletecheckset(data) {
  return request({
    url: '/inspection/checkset/delete',
    method: 'post',
    data
  })
}
